package com.chijun.mform.modify;

import android.content.Context;
import com.chijun.mform.TheResultsListener;
import com.chijun.mform.create.IWaitResult;
import com.chijun.mform.create.mode.FormIcon;
import java.util.ArrayList;
import java.util.List;


public interface IModifyFormListener {
    //获取表单配置
    void getCreateFormConfig(IWaitResult iWaitResult);
    //保存修改的数据
    void save(Context context, String formSaveData, TheResultsListener resultsListener);
    //获取人员列表
    void resultTreeModeList(IWaitResult iWaitResult);
    default List<FormIcon> resultFormIconList(){
        List<FormIcon> formIconList = new ArrayList<>();
        for (int i = 1; i < 76; i++) {
            FormIcon formIcon = new FormIcon(i,"https://form-icon-1302729481.cos.ap-beijing.myqcloud.com/icon_" + i + ".png");
            formIconList.add(formIcon);
        }
        return formIconList;
    }
}
